package View;

import javax.swing.JFrame;

import Custom.DragPanel;

@SuppressWarnings("serial")
public class PopUpFrame extends JFrame {
	
	private static PopUpFrame single;
	private DragPanel drag = new DragPanel(this);
	
	// Constructor \\
	private PopUpFrame() {
		
		// Properties for the frame \\
		setTitle("RegistartionForm");
		setBounds(0, 0, 650, 650);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
		setResizable(false);
		setUndecorated(true);
		
		add(drag);
	}
	
	// Singleton Method DO NOT MODIFY! \\
	public static PopUpFrame getInstance() {
		if(single == null){
			single = new PopUpFrame();
		}
		return single;
	}
	
	public static void selfDestroy(){
		single = null;
	}
}
